<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<title>{yun:}$title{/yun}</title>
<meta name="keywords" content="{yun:}$keywords{/yun}"/>
<meta name="description" content="{yun:}$description{/yun}"/>
<link rel="stylesheet" href="{yun:}$style{/yun}/style/css.css?v={yun:}$config.cachecode{/yun}" type="text/css"/>
<link rel="stylesheet" href="{yun:}$style{/yun}/style/yun_job_fairs.css?v={yun:}$config.cachecode{/yun}" type="text/css"/>
</head>
<body>
{yun:}include file="$tplstyle/header.htm"{/yun}
<div class="redeem">
  <div class="current_Location icon png"> 您当前的位置：<a href="{yun:}$config.sy_weburl{/yun}">首页</a> > <a href="{yun:}url m=redeem{/yun}">{yun:}$config.integral_pricename{/yun}商城</a> > {yun:}$row.name{/yun}</div>
  <div class="redeem_show_lefts fl" style="padding-bottom:20px;">
  <div class="yun_Integral_show_left"><img src="{yun:}$config.sy_weburl{/yun}/{yun:}$row.pic{/yun}" width="278" height="198"></div>
  <div class="yun_Integral_show_right">
  <h1 class="yun_Integral_show_right_name">{yun:}$row.name{/yun}</h1>
      <ul class="redeem_show_texts fl">
        <li>所需{yun:}$config.integral_pricename{/yun}：<i class="dh_jf">{yun:}$row.integral{/yun}</i>{yun:}$config.integral_priceunit{/yun}{yun:}$config.integral_pricename{/yun}</li>
        <li>剩余库存数量：<i class="dh_j">{yun:}$row.stock{/yun}</i>件（已兑换 <b><i class="dh_j">{yun:}$row.num{/yun}</i></b> 件）</li>
        {yun:}if $row.stock!="0"{/yun}
        <li>限购数量：{yun:}if $row.restriction=="0"{/yun}不限{yun:}else{/yun}{yun:}$row.restriction{/yun}件{yun:}/if{/yun}</li>
        <li>兑换数量：{yun:}$smarty.get.num{/yun}件</li>
        {yun:}else{/yun} <img src="{yun:}$style{/yun}/images/yun_ydw.png"> {yun:}/if{/yun}
      </ul>
      </div>
      <div class="clear"></div>
      <iframe id="supportiframe"  name="supportiframe" onload="returnmessage('supportiframe');" class="none"></iframe>
      <form action="{yun:}url m=redeem c=savedh{/yun}" target="supportiframe" method="post" onsubmit="return redeem_dh();">
        <input name="num" value="{yun:}$smarty.get.num{/yun}" type="hidden">
        <div class="redeem_show_img_text">
          <div class="redeem_show_img_text_list"><span class="redeem_show_img_text_list_s">&nbsp;</span><span class="redeem_show_img_text_span">请填写联系方式；以便尽快将礼品送给您！</span></div>
          <div class="redeem_show_img_text_list redeem_show_img_text_list_300"> <span class="redeem_show_img_text_list_s"><span style="color:red;">*</span> 联系人：</span>
            <input type="text"  name="linkman" class="supportiframe_text_in" value="{yun:}$uinfo.linkman{/yun}">
          </div>
          <div class="redeem_show_img_text_list redeem_show_img_text_list_300"> <span class="redeem_show_img_text_list_s"><span style="color:red;">*</span> 联系电话：</span>
            <input type="text" name="linktel" onkeyup="this.value=this.value.replace(/[^0-9-]/g,'')" class="supportiframe_text_in"  value="{yun:}$uinfo.moblie{/yun}">
          </div>
          <div class="redeem_show_img_text_list"> <span class="redeem_show_img_text_list_s"><span style="color:red;">*</span>备注、地址：</span>
            <textarea class="supportiframe_textarea" name="body"></textarea>
          </div>
          <div class="redeem_show_img_text_list redeem_show_img_text_list_300"> <span class="redeem_show_img_text_list_s"><span style="color:red;">*</span> 帐号密码：</span>
            <input type="password" name="password" value="" class="supportiframe_text_in">
          </div>
          <div class="redeem_show_img_text_list"> <span class="redeem_show_img_text_list_s">&nbsp;</span>
            <input name='id' value='{yun:}$row.id{/yun}' type='hidden'>
            <input type="submit" value="提交" name="submit" class="supportiframe_text_bth">
          </div>
        </div>
      </form>

  </div>
  <style>
.redeem_show_texts li {
    width: 100%;
    float: left;
    color: #666;
    line-height: 34px;
    font-size: 14px;
}
</style>
  <div class="redeem_show_right fr" style="margin-top:0px;">
    <div class="redeem_hotgoods_h fl">兑换记录</div>
    <div class="redeem_gift_detail fl" id="jl" style="width:265px; padding-left:10px;">
      <ul class="redeem_record_title redeem_record_h fl">
        <li class="redeem_record_name record_title" style="width:100px;">会员</li>
        <li class="redeem_record_product record_title" style="width:80px;">数量</li>
        <li class="redeem_record_product record_title" style="width:80px;">时间</li>
      </ul>
      <div class="redeem_record_list fl" style=" width:100%;">
        <ul class="redeem_record_title fl">
          {yun:}foreach item=v from=$jilu{/yun}
          <li class="redeem_record_name" style="width:100px;margin-left:0px">{yun:}$v.username|mb_substr:0:1:'utf-8'{/yun}***{yun:}$v.username|mb_substr:-1:1:'utf-8'{/yun}</li>
          <li class="redeem_record_product" style="width:80px;">{yun:}$v.num{/yun}件</li>
          <li class="redeem_record_product" style="width:80px;">{yun:}if $v.time<60{/yun} <span style="color:red;">{yun:}$v.time{/yun}</span> {yun:}else{/yun}{yun:}$v.time{/yun}{yun:}/if{/yun}</li>
          {yun:}foreachelse{/yun}
          <div class="redeem_no_gift">暂无兑换记录</div>
          {yun:}/foreach{/yun}
        </ul>
        
        <div class="clear"></div>
      </div>
    </div>
  </div>
</div>
<script src="{yun:}$config.sy_weburl{/yun}/js/jquery-1.8.0.min.js?v={yun:}$config.cachecode{/yun}" language="javascript"></script>
<link href="{yun:}$config.sy_weburl{/yun}/js/layui/css/layui.css?v={yun:}$config.cachecode{/yun}" rel="stylesheet" type="text/css" /><script src="{yun:}$config.sy_weburl{/yun}/js/layui/layui.js?v={yun:}$config.cachecode{/yun}"></script><script src="{yun:}$config.sy_weburl{/yun}/js/layui/phpyun_layer.js?v={yun:}$config.cachecode{/yun}"></script>
<script src="{yun:}$config.sy_weburl{/yun}/js/lazyload.min.js?v={yun:}$config.cachecode{/yun}" language="javascript"></script>
<script src="{yun:}$config.sy_weburl{/yun}/js/public.js?v={yun:}$config.cachecode{/yun}" language="javascript"></script>
<!--[if IE 6]>
<script src="{yun:}$config.sy_weburl{/yun}/js/png.js?v={yun:}$config.cachecode{/yun}"></script>
<script>
DD_belatedPNG.fix('.png');
</script>
<![endif]-->
<script type="text/javascript"> 
function redeem_dh(){
    var linktel=$.trim($("input[name=linktel]").val());
	var reg_linktel= (/^[1][3456789]\d{9}$|^([0-9]{3,4}\-)?[0-9]{7,8}$/);
	if(linktel){
		if(!reg_linktel.test(linktel)){
			layer.msg('联系电话格式不正确请正确填写！', 2, 8);return false; 
		} 
	}	
}
</script> 
{yun:}include file="$tplstyle/footer.htm"{/yun}